package com.lihaogn.sell.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;

/**
 * @FileName: Order
 * @Description: TODO
 *
 * -- 创建订单表
 * CREATE TABLE `order_master` (
 *     `order_id` VARCHAR(40) NOT NULL,
 *     `order_cost` decimal(5,2) NOT NULL,
 *     `order_pay_status` tinyint NOT NULL DEFAULT 0, -- 订单支付状态：1已支付0未支付
 *     `order_desk_id` tinyint NOT NULL, -- 桌号
 *     `order_peoples` tinyint NOT NULL DEFAULT 2, -- 用餐人数
 *     `order_create_time` datetime NOT NULL DEFAULT now(),
 *     `order_modified_time` timestamp,
 *     `user_id` CHAR(28) NOT NULL, -- 关联用户
 *     PRIMARY KEY(`order_id`),
 *     CONSTRAINT `order_fk` FOREIGN KEY (`user_id`) REFERENCES `user` (`user_wx_openid`)
 * ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 *
 * @Author: lihao
 * @Date: 2019-04-22 16:44
 * @Version: 1.0
 */
@Data
public class Order {

    private String orderId;
    private Double orderCost;
    private Integer orderPayStatus;
    private Integer orderDeskId;
    private Integer orderPeoples;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(hidden = true)
    private Date orderCreateTime;
    private String userId;

}
